package vsjgl;
import java.io.IOException;

import org.newdawn.slick.Color;
import org.newdawn.slick.opengl.Texture;
import org.newdawn.slick.opengl.TextureLoader;
import org.newdawn.slick.util.ResourceLoader;

public class Image {
	private Texture texture;
	private int lx, ly;
	
	public Image(String path,String type) throws IOException{
		this.texture = TextureLoader.getTexture(type, ResourceLoader.getResourceAsStream(path));
		this.lx = texture.getTextureWidth();
		this.ly = texture.getTextureHeight();
	}
	public int getLX(){
		return lx;
	}
	public int getLY(){
		return ly;
	}
	public Texture image(){
		return texture;
	}
}
